package com.qk.common.enums;

public enum ParamEnum implements Code{
    PARAM_ERROR("用户传入参数错误", 101),
    REFERENCE_ERROR("数据被引用无法删除", 105),
    //渠道不能为空
    CHANNEL_NOT_NULL("渠道不能为空", 106),
    ;


    private final String msg;
    private final int code;

    ParamEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
